#define _CRT_SECURE_NO_WARNINGS	

#include<stdio.h>

int main()
{
    int n;
    scanf("%d", &n);
    for (int i = 1; i < n; i++)
    {
        for (int j = 1; j <= i; j++)
            printf("*");
        for (int space = (n - i) * 2 - 1; space > 0; space--)
            printf(" ");
        for (int j = 1; j <= i; j++)
            printf("*");
        printf("\n");
    }
    for (int i = 0; i < n * 2 - 1; i++)
        printf("*");
    return 0;
}